<%--
	author:chengd
	time:2012/5/13 0:13:53
--%>



<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
	<script type="text/javascript">
$(function(){
	jQuery("#dataForm").validate(
	{
		rules: {
			workshop_sn : {
				required: true
			},
			goods_sn : {
				required: true
			},
			pre_quantity : {
				required: true,
				number : true,
				min : 1
			},
			in_quantity : {
				required: true,
				number : true,
				min : 1
			},
			out_quantity : {
				required: true,
				number : true,
				min : 1
			},
			curr_quantity : {
				required: true,
				number : true,
				min : 1
			},
			real_quantity : {
				required: true,
				number : true,
				min : 1
			}
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
_callback = function() {
	location.href = ctx + "/manage/sell/getWorkShopAcc.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">车间生产台帐添加</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getWorkShopAcc.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addWorkShopAcc2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">车间代码：</td>
		<td class="form_input"><input type="text" id="workshop_sn" name="workshop_sn" value="" /></td>
		<td class="form_title">物料代码：</td>
		<td class="form_input"><input type="text" id="goods_sn" name="goods_sn" value="" /></td>
		<td class="form_title">上期结存数量：</td>
		<td class="form_input"><input type="text" id="pre_quantity" name="pre_quantity" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">本期进仓数量（借方）：</td>
		<td class="form_input"><input type="text" id="in_quantity" name="in_quantity" value="" /></td>
		<td class="form_title">本期出仓数量（贷方）：</td>
		<td class="form_input"><input type="text" id="out_quantity" name="out_quantity" value="" /></td>
		<td class="form_title">本期结存数量：</td>
		<td class="form_input"><input type="text" id="curr_quantity" name="curr_quantity" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">实际盘点结存数量：</td>
		<td class="form_input"><input type="text" id="real_quantity" name="real_quantity" value="" /></td>
		<td class="form_title"></td>
		<td class="form_input"></td>
		<td class="form_title"></td>
		<td class="form_input"></td>
	</tr>
</table>
</form>
</body>
</html>
